# Contributor: Bart Ribbers <bribbers@disroot.org>

# The group tag is just to easily find this APKBUILD by some scripts for automation
# group=kde-plasma
maintainer="Bart Ribbers <bribbers@disroot.org>"
pkgname=ocean-sound-theme
pkgver=6.2.3
pkgrel=0
pkgdesc="Ocean Sound Theme for Plasma"
# armhf blocked by extra-cmake-modules
arch="all !armhf"
url="https://invent.kde.org/plasma/ocean-sound-theme"
license="BSD-2-Clause AND CC-BY-SA-4.0 and CC0-1.0"
makedepends="
	extra-cmake-modules
	qt6-qttools-dev
	samurai
	"
case "$pkgver" in
	*.90*) _rel=unstable;;
	*) _rel=stable;;
esac
_repo_url="https://invent.kde.org/plasma/ocean-sound-theme.git"
source="https://download.kde.org/$_rel/plasma/$pkgver/ocean-sound-theme-$pkgver.tar.xz"
options="!check" # No code to test

build() {
	cmake -B build -G Ninja \
		-DCMAKE_BUILD_TYPE=RelWithDebInfo \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=lib
	cmake --build build
}

package() {
	DESTDIR="$pkgdir" cmake --install build
}
sha512sums="
7440ea5a8f948de9690eba83b48ab839c0818bb9fd08918cfeae74340ae1e8ee030a2472f3408d29896d960b3c44b3ce1a6c426a476104b10ebd5c849d8de5ae  ocean-sound-theme-6.2.3.tar.xz
"
